<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sex" class="form-control" name="row[sex]" type="text" value="{$row.sex|htmlentities}">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Id_card')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id_card" class="form-control" name="row[id_card]" type="text" value="{$row.id_card|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('School')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-school" class="form-control" name="row[school]" type="text" value="{$row.school|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Grade')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-grade" class="form-control" name="row[grade]" type="text" value="{$row.grade|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Headmaster')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-headmaster" class="form-control" name="row[headmaster]" type="text" value="{$row.headmaster|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Means')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-means" class="form-control" size="50" name="row[means]" type="text" value="{$row.means|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-means" class="btn btn-danger faupload" data-input-id="c-means" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-means"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-means" class="btn btn-primary fachoose" data-input-id="c-means" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-means"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-means"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Professional')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-professional" class="form-control" name="row[professional]" type="text" value="{$row.professional|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Standard_tuition')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-standard_tuition" class="form-control" step="0.01" name="row[standard_tuition]" type="number" value="{$row.standard_tuition|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bmzc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bmzc" class="form-control" name="row[bmzc]" type="text" value="{$row.bmzc|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Xingshi')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-xingshi" class="form-control selectpicker" name="row[xingshi]">
                <option value="0" {if condition="$row.xingshi eq 0"} selected{/if}>请选择</option>
                <option value="1" {if condition="$row.xingshi eq 1"} selected{/if}>函授</option>
                <option value="2" {if condition="$row.xingshi eq 2"} selected{/if}>国开</option>
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-pay_type" class="form-control selectpicker" name="row[pay_type]">
                {foreach name="payTypeList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.pay_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Actual_cost')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-actual_cost" class="form-control" step="0.01" name="row[actual_cost]" type="number" value="{$row.actual_cost|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Enrollment_teacher')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-enrollment_teacher" class="form-control" step="0.01" name="row[enrollment_teacher]" type="text" value="{$row.enrollment_teacher|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jfjt_images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-jfjt_images" class="form-control" size="50" name="row[jfjt_images]" type="text" value="{$row.jfjt_images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-jfjt_images" class="btn btn-danger faupload" data-input-id="c-jfjt_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-jfjt_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-jfjt_images" class="btn btn-primary fachoose" data-input-id="c-jfjt_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-jfjt_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-jfjt_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Other_content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-other_content" class="form-control editor" rows="5" name="row[other_content]" cols="50">{$row.other_content|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remarks" class="form-control" rows="5" name="row[remarks]" cols="50">{$row.remarks|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['0'=>'未完成', '1'=>'已完成'], $row['status'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
